<?php
include_once("head.php");
$id=$_GET['id'];
preg_match_all('/(<div class="wrapper unit on-2 columns group_wrapper">.*)<div class="wrapper" id="footer">/Uis',file_get("http://www.haodian8.com/Member/".$id.".aspx"),$arr);
$group=$arr[1][0];
$group=str_replace('style="width: 310px">','style="width: 310px"><p style="padding-left: 10px; margin-top: 50px;"><a href="/groupindex.php">返回交流群组首页 &gt;&gt;</a></p><p style="padding-left: 10px;">'.$ads['groupAD']."</p>",$group);
$group=preg_replace('/\/(group)/Uis',$website.'/$1',$group);
$group=preg_replace('/\/Topic\/([0-9]+)\/list\.aspx/Uis',$website.'/group/list/$1'.$rewrite_postfix,$group);
$group=str_replace("href='/","href='".$website.'/',$group);
$group=str_replace('.aspx',$rewrite_postfix,$group);
preg_match_all('/<h3 class="header">(.*)<\/h3>/Uis',$group,$arr);
$thistitle=str_replace('发表的话题','',$arr[1][0]).'的足迹';

include_once("foot.php");
$cache=false;
$smar=new MySmarty($cache,$cachetime,$moban);
$smarty=$smar->get_smarty();
//head
$smarty->assign("thistitle",$thistitle);
$smarty->assign("q",$q);
$smarty->assign("result2",$result2);
$smarty->assign("webname",$webname);
//$smarty->assign("postfix",$postfix);
//$smarty->assign("description",$description);
//$smarty->assign("keywords",$keywords);
$smarty->assign("website",$website);
$smarty->assign("searchkeys",$searchkeys);
$smarty->assign("newshops",$newshops);
$smarty->assign("toubiao",$show_topnav);
$smarty->assign("moban",$moban);
$smarty->assign("thispid",$thispid);

//category
$smarty->assign("prefixurl",$prefixurl);
$smarty->assign("lcat",$lcat);
$smarty->assign("lpro",$lpro);
$smarty->assign("lpage",$lpage);
$smarty->assign("rewrite_postfix",$rewrite_postfix);
$smarty->assign("ljoin",$ljoin);

//groupindex
$smarty->assign("group",$group);
//foot
$smarty->assign("links",$links);
$smarty->assign("QQ",$QQ);
$smarty->assign("ICP",$ICP);
$smarty->assign("tongji",$tongji);
$smarty->assign("jiathis",$jiathis);


$smarty->display("group.html");

?>